import { createRouter, createWebHashHistory } from 'vue-router'
import JumpPage from '../views/JumpPage.vue'
import TaskCenter from '@/views/TaskCenter.vue'
import RearerPlatform from '@/views/RearerPlatform.vue'
import ServicePlatform from '@/views/ServicePlatform.vue'
import CompanyDashBoard from '@/views/CompanyDashBoard.vue'
import ServiceDashBoard from '@/views/ServiceDashBoard.vue'
import MonitorDashBoard from '@/views/MonitorDashBoard.vue'
import TaskDashBoard from '@/views/TaskDashBoard.vue'
import ServerDashBoard from '@/views/ServerDashBoard.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'JumpPage',
      component: JumpPage
    },
    {
      path: '/TaskCenter', // 巡查中心
      name: 'TaskCenter',
      component: TaskCenter
    },
    {
      path: '/ServicePlatform', // 服务部
      name: 'ServicePlatform',
      component: ServicePlatform
    },
    {
      path: '/RearerPlatform', // 养户
      name: 'RearerPlatform',
      component: RearerPlatform
    },
    {
      path: '/CompanyDashBoard', // 四级公司看板
      name: 'CompanyDashBoard',
      component: CompanyDashBoard
    },
    {
      path: '/ServiceDashBoard', // 服务部看板
      name: 'ServiceDashBoard',
      component: ServiceDashBoard
    },
    {
      path: '/MonitorDashBoard', // 任务告警监控看板
      name: 'MonitorDashBoard',
      component: MonitorDashBoard
    },
    {
      path: '/TaskDashBoard', // 任务看板
      name: 'TaskDashBoard',
      component: TaskDashBoard
    },
    {
      path: '/ServerDashBoard', // 服务员看板
      name: 'ServerDashBoard',
      component: ServerDashBoard
    }
  ]
})

export default router
